
import React from 'react'
import { View } from '@tarojs/components'
import style from './index.module.scss'
import {moduleUtil} from '@conecli/cone-render/api'
import { LazyLoadImage } from '@conecli/cone-render/components'

const Header = (props) => {
  const { floorData } = props
  const headerData = moduleUtil.getDataDefine(floorData, 'headerName')
  const img = headerData.data.banner
  return (
    <View className={style['d-header']}>
      <LazyLoadImage className={style['d-img']} src={img} />
    </View>
  )
}

export default Header
